package panda.netease.course.service;

import java.util.List;

import panda.netease.course.meta.ProductTo;
import panda.netease.course.meta.ProductPo;
import panda.netease.course.meta.Transaction;

public interface ProductService {

	public List<ProductTo> getProductList();
	
	public List<ProductTo> getProductInfoList(int id);
	
	public ProductPo getProduct(int id);
	
	public List<ProductTo> getProductListById(int personId);
	
	public void addProduct(ProductPo product);
	
	public void editProduct(ProductPo product);
	
	public int deleteProduct(int id);
	
	public int buyProduct(List<Transaction> list);
}
